package com.sccba.emtbusiness.mapper;

import java.util.List;
import com.sccba.emtbusiness.domain.YjczEmergencyHandleProcess;
import org.apache.ibatis.annotations.Param;

/**
 * 应急处置操作流程Mapper接口
 * 
 * @author lichh
 * @date 2024-04-18
 */
public interface YjczEmergencyHandleProcessMapper 
{
    /**
     * 查询应急处置操作流程
     * 
     * @param pkId 应急处置操作流程主键
     * @return 应急处置操作流程
     */
    public YjczEmergencyHandleProcess selectYjczEmergencyHandleProcessByPkId(Long pkId);

    /**
     * 查询应急处置操作流程列表
     * 
     * @param yjczEmergencyHandleProcess 应急处置操作流程
     * @return 应急处置操作流程集合
     */
    public List<YjczEmergencyHandleProcess> selectYjczEmergencyHandleProcessList(YjczEmergencyHandleProcess yjczEmergencyHandleProcess);

    /**
     * 新增应急处置操作流程
     * 
     * @param yjczEmergencyHandleProcess 应急处置操作流程
     * @return 结果
     */
    public int insertYjczEmergencyHandleProcess(YjczEmergencyHandleProcess yjczEmergencyHandleProcess);

    /**
     * 修改应急处置操作流程
     * 
     * @param yjczEmergencyHandleProcess 应急处置操作流程
     * @return 结果
     */
    public int updateYjczEmergencyHandleProcess(YjczEmergencyHandleProcess yjczEmergencyHandleProcess);

    /**
     * 删除应急处置操作流程
     * 
     * @param pkId 应急处置操作流程主键
     * @return 结果
     */
    public int deleteYjczEmergencyHandleProcessByPkId(Long pkId);

    /**
     * 批量删除应急处置操作流程
     * 
     * @param pkIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYjczEmergencyHandleProcessByPkIds(Long[] pkIds);

    void batchInsert (@Param("list") List<YjczEmergencyHandleProcess> processList);

    void batchUpdate (@Param("list") List<YjczEmergencyHandleProcess> processList);

    void batchDelete (@Param("list") List<Long> pkIds);

    List<YjczEmergencyHandleProcess> getListByFbChannelAndScene (@Param("fbId") Long fbId, @Param("channelId") Long channelId, @Param("sceneId") Long sceneId);

    List<YjczEmergencyHandleProcess> selectProcessTemplateBySceneId (@Param("sceneId") Long sceneId);
}
